package com.baymax.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baymax.datascope.annotation.DataPermission;
import com.baymax.entity.SysUser;
import com.baymax.entity.vo.SysUserVO;

/**
 * 用户 持久层
 *
 * @Author: baymax
 * @CreateTime: 2023/3/28 22:29
 * @Version: 1.0
 */
@DataPermission
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查找用户
     */
    @InterceptorIgnore
    SysUserVO findUserByUsername(String username);

}
